package com.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
public class Data2 {
    @Value("${data2.a}")
    private String a;
    @Value("${data2.bB:XXX}")
    private String b;

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    @Override
    public String toString() {
        return "Data2{" +
                "a='" + a + '\'' +
                ", b='" + b + '\'' +
                '}';
    }
}
